package org.jeecg.modules.demo.hd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.demo.hd.entity.AppUserCashMain;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.hd.vo.UserCashMainSearchInputVo;
import org.jeecg.modules.demo.hd.vo.UserCashMainViewVo;
import org.jeecg.modules.demo.hd.vo.myProject.CashOutVo;

/**
 * @Description: app_user_cash_main
 * @Author: jeecg-boot
 * @Date: 2025-02-04
 * @Version: V1.0
 */
public interface IAppUserCashMainService extends IService<AppUserCashMain> {

    Float queryCurrentCash();

    Boolean updateCashMain(String userId, double cashNum);

    /**
     * 用户提现
     *
     * @param vo
     * @return
     */
    String CashOut(CashOutVo vo);

    IPage<UserCashMainViewVo> getList(UserCashMainSearchInputVo vo,  IPage page);
}
